<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width">
        <script>
        function recupererTexte () {
            var elementTexte1 = document.getElementsByName("champTexte1")[0];
            var elementTexte2 = document.getElementsByName("champTexte2")[0];
            
            elementTexte2.value = elementTexte1.value;
        }    
        </script>
    </head>
    
    <body>
        <form name="formulaire">
            <input type="text" name="champTexte1" id="champTexte1" value="">
            <input type="text" name="champTexte2" id="champTexte2" value="">
            <input type="button" value="Récupérer le texte du champ 1 vers le champ 2 !" onclick="recupererTexte();">
        </form>
    </body>
</html>
